<?php
/**
 * Stock X-Ray
 *
 */

elgg_load_library('elgg:selected_pool');
gatekeeper();
$usr_id = elgg_get_logged_in_user_guid();

$title = elgg_echo('Security Perspective');
$content = '';

$content .= elgg_view('stocktop');

$fund_param = get_input('fund_param');
//print_r('hello=' . $fund_param);
//print_r('sec=' . $page[0]);
$content .= elgg_view('stockchart', array('sec'=>$page[0],'fund_id'=>$fund_param));

$content .= elgg_view('stockfactor', array('sec'=>$page[0],'fund_id'=>$fund_param));

/*
$content .= "<table><tr><td>";
$content .= elgg_view('blogs');
$content .= elgg_view('events');
$content .= "</td><td>";
$content .= elgg_view('trades');
$content .= "</td></tr></table>";
*/

$sidebar = elgg_view('sidebar', array('sec'=>$page[0]));
$sidebar_alt = elgg_view('sidebar_alt', array('sec'=>$page[0]));


$params = array(
	'title' => $title, 
	'filter' => "",
	'content' => $content,
	'sidebar' => $sidebar,
	'sidebar_alt' => $sidebar_alt,
	);

$body = elgg_view_layout('content', $params);
echo elgg_view_page($title, $body);
